﻿using ALMDDD.Domain.Core.Events;
using System;
using System.Collections.Generic;
using System.Text;

namespace ALMDDD.Domain.Events
{
    /// <summary>
    /// 用户事件类，当用户注册之后触发的事件
    /// </summary>
    public class SysUserAddEvent:Event
    {

        public SysUserAddEvent(Guid id, string userId, string userName, string gender, string pwd, string email, string phone, DateTime trxTime)
        {
            Id = id;
            UserName = userName;
            UserId = userId;
            Gender = gender;
            PassWord = pwd;
            Email = email;
            Phone = phone;
            TrxTime = trxTime;
        }
        public Guid Id { get; private set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public string UserId { get; private set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; private set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string Gender { get; private set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; private set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; private set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; private set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime TrxTime { get; private set; }
    }
}
